package cn.monkey.transport.core.server;

import cn.monkey.transport.core.Exchange;
import cn.monkey.transport.core.Inbound;
import cn.monkey.transport.core.Outbound;

import java.util.function.BiConsumer;

public interface Dispatcher<EXCHANGE extends Exchange, Pkg> extends BiConsumer<EXCHANGE, Pkg> {
    void accept(EXCHANGE session, Pkg pkg);
}
